<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>弹性布局入门</title>
    <style>
        .container{
            display: flex;
        }
        .item{
            background-color: lightgreen;
            border: 3px solid green;
            width: 100px;
            height: 100px;
        }
    </style>
</head>
<body>
<!--    <div class="container">-->
<!--        <div class="item">1</div>-->
<!--        <div class="item">2</div>-->
<!--        <div class="item">3</div>-->
<!--    </div>    -->
<!-- span行内元素作为弹性布局子项目后，块状化，也可以设置宽高了 -->
<div class="container">
    <span class="item">1</span>
    <span class="item">2</span>
    <span class="item">3</span>
</div>
</body>
</html>